# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer:
pkgname=sylpheed-imap-notify
pkgver=1.1.0
pkgrel=2
pkgdesc="An IMAP NOTIFY and IDLE plugin for the Sylpheed mail client."
url="https://github.com/clehner/sylpheed-imap-notify"
arch="all"
license="GPL-3.0-or-later"
depends="sylpheed"
makedepends="sylpheed-dev gtk+2.0-dev"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/clehner/sylpheed-imap-notify/archive/$pkgver.tar.gz
	fix-format-error.patch
	gcc14.patch
	"

build() {
	make PREFIX=/usr SYLPHEED_DIR=/usr/include/sylpheed/sylph
}

package() {
	install -Dm0644 imap_notify.so \
		-t "$pkgdir"/usr/lib/sylpheed/plugins/
}

sha512sums="
8763bf271f2908c02112ae6f737f0435091d7f5f0b336cb60be6e655cc678c82cadde0d3d4fb595a673189b6b4444e65a8f753ff91fe5522423e20ec6e4ec339  sylpheed-imap-notify-1.1.0.tar.gz
95843e8bcfdb3ce505d2b13fede206cd058ea13059af3c9152762bec7aad36fc62ef78bcccb572fff5f5348b464f57ed5c058fd33f9403cf9556df2b1bf1ec71  fix-format-error.patch
e89525001de8cdfcc57c6504207573642601b10c1359af143f1f7d4b48f65e06f4c8400e1da74e2e57d83a76ddfff692d827a7c453d6bf8c51119a1cab216a03  gcc14.patch
"
